﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
using System.ComponentModel;

namespace SQLServerOptimizer.PL.WPF
{
    public class Severity : INotifyPropertyChanged
    {
        public string name { get; set; }
        public bool ischecked { get; set; }
        public SolidColorBrush color { get;  set; }



        public Severity(string name, bool ischecked, SolidColorBrush color)
        {

            this.name = name;
            this.ischecked = ischecked;
            this.color = color;
        }

        public event PropertyChangedEventHandler PropertyChanged;

        protected void NotifyPropertyChanged(string name)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(name));
            }
        }
    }
}
